﻿namespace LS.Nc6.Web.Entry.Areas.Cms
{
    /// <summary>
    /// 样式提交表输入
    /// </summary>
    public class TablestyleInput
    {
        public long Id { get; set; }
        /// <summary>
        /// 提交样式对应字段标识
        /// </summary>
        public long? RelatedIdentity { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public string AttributeName { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; set; }
        /// <summary>
        /// 帮助提示
        /// </summary>
        public string HelpText { get; set; }
        /// <summary>
        /// 是否在列表中显示 0=否 1=是
        /// </summary>
        public int? List { get; set; } = 0;
        /// <summary>
        /// 表单提交类型
        /// </summary>
        public string InputType { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultValue { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Taxis { get; set; } = 0;
       
        /// <summary>
        /// 内置字段 是=1 0=否
        /// </summary>
        public int BuiltIn { get; set; }=0;

        public string ItemValues { get; set; }

       public List<InputStyleItemVuale> ExtendItemValues { get; set; }

        public string RuleValues { get; set; }

        public List<InputStyleRule> ExtendRuleValues { get; set; }

        public int Height { get; set; } = 0;

        public bool IsFormatString { get; set; }

        public string CustomizeCode { get; set; }

        
    }

    public class InputStyleItem
    {
        public string ItemValues { get; set; }

        public string RuleValues { get; set; }

        public int Height { get; set; } = 0;

        public string CustomizeCode { get; set; }
    }

    /// <summary>
    /// 输入类型
    /// </summary>
    public class InputStyleRule
    {
        public string Type { get; set; }
        public string Value { get; set; }
        public string Message { get; set; }
    }

    public class InputStyleItemVuale
    {
        public string Label{get;set;}
        public string Value { get; set; }
        public string Selected { get; set; }

    }
    public class TableStyleRuleInput
    {
        public long Id { get; set; }

        public string StyleRules { get; set; }
    }
}
